package com.ase.单例模式.hungry;

/**
 * 饿汉模式
 * @author gyhstart
 * @create 2021/2/15 - 14:23
 **/
public class Singleton {
    private static Singleton singleton = new Singleton();

    private Singleton(){}

    public static Singleton getInstance(){
        return singleton;
    }
}
